//
//  keyboardCollectionViewCell.m
//  ceshi
//
//  Created by liutaifeng on 16/5/19.
//  Copyright © 2016年 liutaifeng. All rights reserved.
//

#import "KeyboardCollectionViewCell.h"
#import "Common.h"
@implementation KeyboardCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}
- (void)createView {
    self.titleLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_titleLabel];
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.contentView.backgroundColor = [UIColor whiteColor];
    _titleLabel.frame = CGRectMake(2, 2, self.contentView.frame.size.width - 4, self.contentView.frame.size.height - 4);

    _titleLabel.backgroundColor = [UIColor colorWithWhite:0.9 alpha:1];
    _titleLabel.textAlignment = NSTextAlignmentCenter;
    //_titleLabel.textColor = [UIColor blackColor];
    _titleLabel.font = [UIFont systemFontOfSize:16 / 667.0 * MAIN_HEIGHT];
    }
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
